package com.example.tianling.controller;

import com.example.tianling.WebSocket.handler.UserWebSocketHandler;
import com.example.tianling.common.annotation.Login;
import com.example.tianling.common.annotation.LoginUser;
import com.example.tianling.entity.UserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;

@Controller
public class PushController {

    @Autowired
    private UserWebSocketHandler userWebSocketHandler;

    /*
     * 好友邀请
     */
    @Login
    @PostMapping("/push/friend_invite")
    public void friendInvite(@LoginUser UserEntity user) {

//        pushWebSocketHandler.sendMessageToOne();
    }

    public void systemInvite() {
//        pushWebSocketHandler.senndMessageToAll();
    }
}
